package com.ssm.subject.domain.convert;

import com.ssm.subject.domain.bo.SubjectAnswerBO;
import com.ssm.subject.infra.basic.entity.SubjectMultiple;
import com.ssm.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectMultipleConvert {
    SubjectMultipleConvert INSTANCE = Mappers.getMapper(SubjectMultipleConvert.class);

    //SubjectAnswerBO 转 SubjectMultiple (两个类属性名相同即可转)
    SubjectMultiple subjectAnswerBoToMultiple(SubjectAnswerBO subjectAnswerBO);

    //MultipleList 转 AnswerBoList
    List<SubjectAnswerBO> subjectMultipleListToAnswerBoList(List<SubjectMultiple> subjectMultipleList);
}
